package com.study.model.pojo.PSIpojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the sale_order database table.
 * 
 */
@Entity
@Table(name="sale_order")
@NamedQuery(name="SaleOrder.findAll", query="SELECT s FROM SaleOrder s")
public class SaleOrder implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String saleorderid;

	private int customerid;

	private BigDecimal needpay;

	private String remark;

	private int salecondition;

	private String saledrawerid;

	@Temporal(TemporalType.TIMESTAMP)
	private Date saleopendate;

	private int salestate;

	private int settletype;

	private String stateid;

	@Temporal(TemporalType.TIMESTAMP)
	private Date statetime;

	private BigDecimal totalprice;

	private int warehouseid;

	public SaleOrder() {
	}

	public String getSaleorderid() {
		return this.saleorderid;
	}

	public void setSaleorderid(String saleorderid) {
		this.saleorderid = saleorderid;
	}

	public int getCustomerid() {
		return this.customerid;
	}

	public void setCustomerid(int customerid) {
		this.customerid = customerid;
	}

	public BigDecimal getNeedpay() {
		return this.needpay;
	}

	public void setNeedpay(BigDecimal needpay) {
		this.needpay = needpay;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getSalecondition() {
		return this.salecondition;
	}

	public void setSalecondition(int salecondition) {
		this.salecondition = salecondition;
	}

	public String getSaledrawerid() {
		return this.saledrawerid;
	}

	public void setSaledrawerid(String saledrawerid) {
		this.saledrawerid = saledrawerid;
	}

	public Date getSaleopendate() {
		return this.saleopendate;
	}

	public void setSaleopendate(Date saleopendate) {
		this.saleopendate = saleopendate;
	}

	public int getSalestate() {
		return this.salestate;
	}

	public void setSalestate(int salestate) {
		this.salestate = salestate;
	}

	public int getSettletype() {
		return this.settletype;
	}

	public void setSettletype(int settletype) {
		this.settletype = settletype;
	}

	public String getStateid() {
		return this.stateid;
	}

	public void setStateid(String stateid) {
		this.stateid = stateid;
	}

	public Date getStatetime() {
		return this.statetime;
	}

	public void setStatetime(Date statetime) {
		this.statetime = statetime;
	}

	public BigDecimal getTotalprice() {
		return this.totalprice;
	}

	public void setTotalprice(BigDecimal totalprice) {
		this.totalprice = totalprice;
	}

	public int getWarehouseid() {
		return this.warehouseid;
	}

	public void setWarehouseid(int warehouseid) {
		this.warehouseid = warehouseid;
	}

}